package com.fs.repository;

import com.fs.entity.Room;
import com.fs.entity.Shop;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface RoomRepository extends JpaRepository<Room,Integer>, JpaSpecificationExecutor<Room> {
    Long countByShop(Shop shop);

    boolean existsRoomById(Integer id);
}
